package com.kylin.module.ad.forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

import com.kylin.module.ad.orm.ADType;

public class ADForm  extends ActionForm{
    private Long id;
    private Long adtype;
    private String name;
    private String owner;
    private String link;
    private String memo;
    private FormFile file;
    private String endtime;
    private String language;
    private String createdby;
    private Date createdon;
    private String lastupdatedby;
    private Date lastupdatedon;
    private Short active;
    private Integer ordering;
    private Integer hits;
    
    private String appPath;

	public Short getActive() {
		return active;
	}
	public void setActive(Short active) {
		this.active = active;
	}
	public Long getAdtype() {
		return adtype;
	}
	public void setAdtype(Long adtype) {
		this.adtype = adtype;
	}
	public String getCreatedby() {
		return createdby;
	}
	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}
	public Date getCreatedon() {
		return createdon;
	}
	public void setCreatedon(Date createdon) {
		this.createdon = createdon;
	}
	
	public Integer getHits() {
		return hits;
	}
	public void setHits(Integer hits) {
		this.hits = hits;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getLastupdatedby() {
		return lastupdatedby;
	}
	public void setLastupdatedby(String lastupdatedby) {
		this.lastupdatedby = lastupdatedby;
	}
	public Date getLastupdatedon() {
		return lastupdatedon;
	}
	public void setLastupdatedon(Date lastupdatedon) {
		this.lastupdatedon = lastupdatedon;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getOrdering() {
		return ordering;
	}
	public void setOrdering(Integer ordering) {
		this.ordering = ordering;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("\n adtype  ="+adtype    );
		sb.append("\n name    ="+name      );
		sb.append("\n owner   ="+owner     );
		sb.append("\n link    ="+link      );
		sb.append("\n memo    ="+memo      );
		sb.append("\n file ="+file   );
		sb.append("\n endtime ="+endtime   );
		sb.append("\n language="+language  );		
		return sb.toString();
	}
	public FormFile getFile() {
		return file;
	}
	public void setFile(FormFile file) {
		this.file = file;
	}
	public String getAppPath() {
		return appPath;
	}
	public void setAppPath(String appPath) {
		this.appPath = appPath;
	}
	public String getEndtime() {
		return endtime;
	}
	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
}
